package com.windystory.wslibrary.util.event;

import java.util.List;

/**
 * EventBus刷新事件
 */
public class Event<T> {

    public static final int GPS = 100000;

    public int what;
    public String msg;
    public Object obj;
    public List<T> list;

    public Event(int what) {
        this.what = what;
    }

    public Event(int what, String msg) {
        this.msg = msg;
        this.what = what;
    }

    public Event(int what, List<T> list) {
        this.list = list;
        this.what = what;
    }

    public Event(int what, String msg, Object obj) {
        this.msg = msg;
        this.obj = obj;
        this.what = what;
    }

    public int getWhat() {
        return what;
    }

    public void setWhat(int what) {
        this.what = what;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
